﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CrawlerLogFolder
{
    public class SolutionWithCount
    {
        public int MinOperations(string[] logs)
        {
            var count = 0;
            foreach (var log in logs)
            {
                switch (log)
                {
                    case "../":
                        if (count > 0)
                        {
                            count--;
                        }
                        break;
                    case "./":
                        break;
                    default:
                        count++;
                        break;
                }
            }

            return count;
        }
    }
}
